#ifndef MYDEFINITIONS_H
#define MYDEFINITIONS_H

#ifndef M_PI
#define M_PI	3.141592654
#endif

#include <iostream>
#include <sstream>
#include <list>
#include <vector>
#include <string>
#include "math.h"
#include "MyEnums.h"
#include "SDL/SDL.h"
#include "SDL/SDL_image.h"
#include "SDL/SDL_ttf.h"

using namespace std;

#define STANDARD_FPS 60	 //game fps standard

//max speed - actual speed will be MAX_PLAYER_SPEED * FRICTION_X
static double MAX_PLAYER_SPEED = 3.0f;

/* for real looking speed, we must calculate
 * player is 50px high, in real life it is about 1.8m
 * 50px = 1.8m = 1800mm --> 1m = 27.777px ~ 28px
 * 1 m/s = 28 px/s = 0.028 px/ms
 * 60 m/s (the speed of bow -- source from net) is therefore 1.68 px/s, we say 1.7 px/s */
/* forget the real calculations, do comparison.
 * player speed max is 2.55(m/s AND px/ns) = cca 9km/h  therefore the speed of bow
 * is calculated as 60/9 ~= 6.5 --> 2.55*6.5 = 16.6(m/s AND px/ns)

 USED >> 50 >> effect
 */

static double FRICTION_X = 0.85f;
static double FRICTION_Y = 0.85f;

static double SPEEDUP_X = 100;
static double SPEEDUP_Y = 15;

static double GRAVITY = 9.8f;
#endif
